package main;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class MainGUI extends JFrame {
	
	
	private JPanel panel;  
    private JLabel msg;
    
    
    public void criaJanela()  
    {         
        panel = new JPanel();  
        msg = new JLabel("Digite a consulta:");  
          
        panel.add(msg);  
          
        getContentPane().add(panel, BorderLayout.CENTER);  
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
          
        pack();  
        setVisible(true);  
    }  
    
    public static void main(String args[])  
    {  
    	MainGUI s = new MainGUI();  
        s.criaJanela();  
    }  
}
